#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	/*int i;
	for (i = 32;i <= 127;i++)
	{
		printf("%c\t", i);
	}*/
	
	/*int a = 0, b = 0;
	while (scanf("%d%d",&a, &b) != EOF)
		printf("%d\n",a+b);*/

	int year, month, day;
	scanf("%d%*c%d%*c%d", &year, &month, &day);
	printf("%d %d %d", year, month, day);
	
	return 0;
}

